﻿@{
    ViewBag.Title = "功能列表";
    Layout = "~/Views/Shared/_FrameLayout.cshtml";
}

@section scripts
{
    <script>
        function getContent() {
            var rowId = $("#table_list").jqGrid("getGridParam", "selrow");
            var rowData = $("#table_list").jqGrid("getRowData", rowId);

            return rowData;
        }

        $(document).ready(function() {
            var config = {
                title: '功能列表',
                url: '@Url.Action("Query")',
                colNames: ['主键', '名称', '说明', '选择'],
                colModel: [
                    { name: 'Id', index: 'Id', width: 60, key: true, hidden: true },
                    { name: 'PageName', index: 'PageName', width: 60 },
                    { name: 'Description', index: 'Description', width: 60 },
                    {
                        name: 'Action',
                        index: 'Action',
                        width: 20,
                        align: 'center',
                        sortable: false

                    }
                ],
                sortname: 'PageCode',
                height: "300px"

            };
            WikeGrid.Load(config);
        });
    </script>
}

<form id="searchToolBar" class="alert alert-info form-inline toolbarsearch" action="">
    <div class="form-group">
        <label for="keywords">关键字</label>
        <input type="text" id="keywords" name="keywords" autocomplete="off" class="form-control" placeholder="请输入关键字" />

    </div>

    <button class="btn btn-danger" id="btnSearch" type="button">
        <i class="fa fa-search"></i>查询
    </button>
     
</form>


<div class="jqGrid_wrapper">
    <table id="table_list"></table>
    <div id="pager_list"></div>
</div>